﻿<%@ Page Language="c#" ContentType="text/html" ResponseEncoding="utf-8" Async="true" MasterPageFile="~/administration/master_popup.master" Inherits="ACM.cmsarea08.Administration.Core.OptPageBase" %>
<%@ MasterType VirtualPath="~/administration/master_popup.master" %>
<asp:Content ID="PageBody" Runat="server" ContentPlaceHolderID="MasterBody">
<div id="option_popup">
<div class="popup_msgs">
Anteprima Profilo Utente
</div>
<div> form demo<br/>
<ptl:Itan_FormEditor id="myform" runat="server" >
</ptl:itan_formeditor>
</div>
</div>
<script language="c#" runat="server">

protected override void OnInit(EventArgs e){
	base.OnInit(e);
	string myform_id = "";

	if(Request.Params["vid"]==null) 
		return;
	else 
		myform_id= Request.Params["vid"].ToString();
	
	//varie verifica se esiste.
	if(myform_id.Trim()!="") {
		myform.srcform= "http://"+Request.ServerVariables["SERVER_NAME"]+"/UserFormLoader.ashx?vid="+myform_id;
		
		Response.Write( "<br/>UN1: <br/>http://"+Request.ServerVariables["SERVER_NAME"]+"/UserFormLoader.ashx?vid="+myform_id +"<hr/>") ;
		myform.srcxsl= "/public/xsl/xsl_utenti.xsl";
		myform.xsdform= "/public/xsd/user_profiles.xsd";			
		myform.ModuleName  = "";
		myform.ModuleFooter= "";
		myform.StandardForm=false;
		myform.FormBind();
	}
}



private void Page_Load(Object o, EventArgs e){

}
</script>
</asp:content>